<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>宏图办公系统</title>
<link rel="stylesheet" href="<%=path %>/js/jquery-easyui/themes/bootstrap/easyui.css"/>
<link rel="stylesheet" href="<%=path %>/css/site_main.css"/>
<script type="text/javascript" src="<%=path %>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=path %>/js/site_easyui.js"></script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',border:false" class="north">
	<!-- 
		LOGO
    <img class="main_logo" src="<%=path %>/images/logo.jpg"/>
    -->
    <div class="north wel_msg">
        欢迎您:&nbsp;<b>${requestScope.user.dep.getEname() }</b>&nbsp;&nbsp;
        <a href="javascript:void(0);" onclick="toPage('<%=path %>/#')">刷新主页</a>&nbsp;&nbsp;
        <a href="<%=path %>/#">安全退出</a>
    </div>
</div>
<div data-options="region:'west',split:true,title:'功能菜单'" class="west">
    <div class="easyui-accordion" data-options="border:false">
		<%
		/*
		1-任课教师
		2-班主任
		3-招生老师
		4-教务主任
		5-后勤主任
		6-老廖或老陈
		7-辅导老师
		8-意向学生
		9-预定学生
		10-正式学员
		11-超级管理员
		12-普通管理员
		*/
		%>
    	<div title="日常办公" class="site_menu">
    		<c:choose>
    			<c:when test="${requestScope.user.statuss.getZid() eq 11 || requestScope.user.statuss.getZid() eq 6}">
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">巡查</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">公告</a></p>
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">办公用品</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">打卡记录</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学生意见</a></p>
	            </c:when>
	            <c:when test="${requestScope.user.statuss.getZid() eq 5}">
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">办公用品</a></p>
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学生意见</a></p>
	            </c:when>
	            <c:otherwise>
    				<span>权限不足!</span>
    			</c:otherwise>
            </c:choose>
        </div>
        <div title="招生管理" class="site_menu">
        	<c:choose>
        		<c:when test="${requestScope.user.statuss.getZid() eq 11 || requestScope.user.statuss.getZid() eq 3 || requestScope.user.statuss.getZid() eq 6}">
		        	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">招生管理员</a></p>
		        	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">意向学生</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">预定报名</a></p>
	            </c:when>
	            <c:otherwise>
    				<span>权限不足!</span>
    			</c:otherwise>
            </c:choose>
        </div>
        <div title="教务管理" class="site_menu">
        	<c:choose>
        		<c:when test="${requestScope.user.statuss.getZid() eq 11 || requestScope.user.statuss.getZid() eq 1 ||  requestScope.user.statuss.getZid() eq 2 || requestScope.user.statuss.getZid() eq 6}">
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学期</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">课程</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">教员反馈</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">研讨会</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">课程进度</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学生成绩</a></p>
	            </c:when>
	            <c:when test="${requestScope.user.statuss.getZid() eq 7}">
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">教员反馈</a></p>
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">研讨会</a></p>
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学生成绩</a></p>
	            </c:when>
	            <c:otherwise>
    				<span>权限不足!</span>
    			</c:otherwise>
            </c:choose>
        </div>
        <div title="学生管理" class="site_menu">
        	<c:choose>
        		<c:when test="${requestScope.user.statuss.getZid() eq 11 || requestScope.user.statuss.getZid() eq 2 || requestScope.user.statuss.getZid() eq 6}">
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">班级</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">宿舍</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学员</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">谈心</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">奖惩</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">项目</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">就业</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">电脑领用</a></p>
	            </c:when>
	            <c:when test="${requestScope.user.statuss.getZid() eq 5}">
	            	<a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">电脑领用</a></p>
	            </c:when>
	            <c:otherwise>
    				<span>权限不足!</span>
    			</c:otherwise>
            </c:choose>
        </div>
         <div title="财务管理" class="site_menu">
         	<c:choose>
         		<c:when test="${requestScope.user.statuss.getZid() eq 11 || requestScope.user.statuss.getZid() eq 6}">
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">学费</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">添加收入</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">添加支出</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">所有收入</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">所有支出</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">工资</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">报销</a></p>
	            </c:when>
	             <c:otherwise>
    				<span>权限不足!</span>
    			</c:otherwise>
            </c:choose>
        </div>
        <div title="系统管理" class="site_menu">
        	<c:choose>
        		<c:when test="${requestScope.user.statuss.getZid() eq 1 || requestScope.user.statuss.getZid() eq 6 || requestScope.user.statuss.getZid() eq 11}">
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">角色</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">部门</a></p>
		            <a href="javascript:void(0);" src="<%=path %>/#" class="site-navi-tab">员工</a></p>
	            </c:when>
	            <c:otherwise>
    				<span>权限不足!</span>
    			</c:otherwise>
            </c:choose>
        </div>
    </div>
</div>
<div id="mainPanle" data-options="region:'center',border:true">
    <div id="tabs" class="easyui-tabs" data-options="fit:true,border:false">
        <div title="主页">
            宏图软件办公系统
        </div>
    </div>
</div>
<div data-options="region:'south',border:false">
    宏图软件办公OA系统V1.0&nbsp;&nbsp;技术支持:15春班OA项目4组
</div>

<div id="mm" class="easyui-menu">
    <div id="mm-tabupdate">刷新</div>
    <div class="menu-sep"></div>
    <div id="mm-tabclose">关闭</div>
    <div id="mm-tabcloseother">关闭其他</div>
    <div id="mm-tabcloseall">关闭全部</div>
</div>
</body>
</html>